<template>
	<view>
		{{currentCinema.id}}
		{{currentCinema.movieTheatreName}}
		{{currentCinema.movieTheatreAddress}}
	</view>
</template>

<script>
	export default {
		onLoad() {
			let cinema;
			uni.getStorage({
			    key: 'currentCinema',
			    success: function (res) {
			        console.log(res.data);
					cinema = res.data	
			    }
			});	
			this.currentCinema = cinema
			console.log(cinema.id)
			console.log(cinema.movieTheatreName)
			console.log(cinema.movieTheatreAddress)
			console.log("---------------------")
			// 传入影院id，从后台获取该影院的影片信息，排片信息等
			uni.request({
			    url: '/api/cinema/getAllMovieInformation',
				 data:{
					cinemaId: cinema.id
				 },
			    success: function (res) {
			       console.log(res.data)
			    }
			});
		},
		data() {
			return {
				currentCinema:""
			}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
